package com.nus.fellowmark.modules.module.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.EnrollmentEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
public interface EnrollmentService extends IService<EnrollmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<Integer> getStudentIdsInModule(Integer moduleId);

    List<EnrollmentEntity> getByStudentId(Integer studentId);

    EnrollmentEntity getByStudentIdAndModuleId(Integer studentId, Integer moduleId);
}

